<!DOCTYPE html>
<html lang="en">
<head>
    <meta name ="viewport" content ="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta charset="UTF-8">
    <title>县区查询</title>
    <link rel="stylesheet" href="../css/style.css">
</head>
<body>
<div class="formula-content">
    <div class="formula-left">
        <ul>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
            <li>
                <a href="javascript:void(0)">板桥乡</a>
            </li>
        </ul>
    </div>
</div>
<script src="../js/method/jquery.2.1.1min.js"></script>
<script src="../js/method/fastclick.js"></script>
<script src="../js/method/axios.min.js"></script>
<script src="../js/function.js"></script>
<script src="../js/public.js"></script>

<script>
    $(function () {
        $(".formula-left").on("click","ul>li",function () {
            var index= $(this).index();
            $(this).addClass("actives").siblings().removeClass("actives");
            var id=$(this).attr('data-id');
             setItem("id",id);
            location.href="classificationSeach.html"
        });
        postAxios("",{data:"data"},countyArea);
        function countyArea(data) {
            var html="";
            for (var i=0;i<data.length;i++){
                html+=`<li data-id='${data.id}'>
                            <a href="javascript:void(0)">${data.name}</a>
                       </li>`
            }
            $(".formula-left>ul").appendChild(html)
        }
    })
</script>
</body>
</html>